css: Letterspacing affects text size
authorMatthias Clasen <mclasen@redhat.com>
Thu, 18 Apr 2019 17:34:44 +0000 (17:34 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 18 Apr 2019 17:34:44 +0000 (17:34 +0000)
It does. And we were missing the proper
flags to make GTK do the right thing when
changing letter-spacing in the inspector.

gtk/gtkcssstylepropertyimpl.c

index 6304c899fea4cc971ed194b13862a85bd54adda3..251adb4a9a614ab32644f9c294a2d6e1990ae357 100644 (file)
@@ -1030,7 +1030,7 @@ _gtk_css_style_property_init_properties (void)
                                           GTK_CSS_PROPERTY_LETTER_SPACING,
                                           G_TYPE_NONE,
                                           GTK_STYLE_PROPERTY_INHERIT | GTK_STYLE_PROPERTY_ANIMATED,
-                                          GTK_CSS_AFFECTS_TEXT_ATTRS,
+                                          GTK_CSS_AFFECTS_TEXT_ATTRS | GTK_CSS_AFFECTS_TEXT_SIZE,
                                           parse_letter_spacing,
                                           NULL,
                                           _gtk_css_number_value_new (0.0, GTK_CSS_PX));